package org.quartz.watch.dc.impl;

import java.util.List;

import javax.faces.context.FacesContext;

import org.quartz.watch.dc.QWMenuDialogController;

public class QWMenuDC<C extends QWAbstractDC.Record<?>> extends QWAbstractDC<C> implements QWMenuDialogController<C> {

	@Override
	public int getRecordCount() {
		return 0;
	}

	@Override
	public List<C> getRecords() {
		return null;
	}

	@Override
	public boolean navigationActionPerformed() {
		return false;
	}
	
	public String signoutActionPerformed() {
		return "signout";
	}
	
	public String schedulerActionPerformed() {
		return "scheduler";
	}
	
	public String jobActionPerformed() {
		return "job";
	}
	
	public String triggerListActionPerformed() {
		return "triggerList";
	}
	
	public String getSchedulerMenuStyleClass() {
		return "";
	}
	
	public String getJobMenuStyleClass() {
		return "";
	}
	
	public String getTriggerListMenuStyleClass() {
		return "";
	}
	
	public boolean isMessagesToDisplay() {
		return FacesContext.getCurrentInstance().getMessages() != null && FacesContext.getCurrentInstance().getMessages().hasNext();
	}
}
